<script setup></script>

<template>
  <router-view v-slot="{ Component }">
    <keep-alive include="List">
      <component :is="Component" />
    </keep-alive>
  </router-view>

  <van-tabbar route>
    <van-tabbar-item
      icon="home-o"
      to="/list"
      icon-prefix="iconfont icon-beidanci"
      >单词</van-tabbar-item
    >
    <van-tabbar-item
      icon="search"
      icon-prefix="iconfont icon-lishi"
      to="/history"
      >历史</van-tabbar-item
    >
    <van-tabbar-item
      icon="friends-o"
      icon-prefix="iconfont icon-jindu"
      to="/progress"
      >进度</van-tabbar-item
    >
    <van-tabbar-item icon="setting-o" to="/my" icon-prefix="iconfont icon-wode"
      >我的</van-tabbar-item
    >
  </van-tabbar>
</template>

<style scoped lang="scss"></style>
